import Vue from 'vue'
import App from './App'
import {
	myRequest
} from 'util/api.js'

//全局URL处理
Vue.prototype.$myRequest = myRequest

//过滤处理时间
Vue.filter('formater', (date) => {
	const nDate = new Data(date)
	const year = nDate.getFullYear()
	const month = nDate.getMonth().toString().padStart(2, 0) //不满足两位数加0在前面
	const day = nDate.getDay().toString().padStart(2, 0)
	return year + '年' + month + '月' + day + '日'
})

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
